import Login from '../pages/login/Login'
import Home from '../pages/Home'

import Exam from '../pages/exam'

import AddExam from '../pages/exam/AddExam'
import ExamClassify from '../pages/exam/ExamClassify'
import LookExam from '../pages/exam/LookExam'

export default [
    {
        path: "/home",
        component: Home,
        auth: ["管理员", "出题者", "浏览者"],
        children: [
            {
                path: "/home/exam",
                label: "试题管理",
                component: Exam,
                title: "试题管理",
                key: "/home/exam",
                auth: ["管理员", "出题者", "浏览者"],
                children: [
                    {
                        path: "/home/exam/addExam",
                        component: AddExam,
                        key: "/home/exam/addExam",
                        title: "添加试题",
                        label: "添加试题",
                        auth: ["管理员", "出题者"]
                    },
                    {
                        path: "/home/exam/examClassify",
                        component: ExamClassify,
                        key: "/home/exam/examClassify",
                        title: "试题分类",
                        label: "试题分类",
                        auth: ["管理员"]
                    },
                    {
                        path: "/home/exam/lookExam",
                        component: LookExam,
                        key: "/home/exam/lookExam",
                        title: "查看试题",
                        label: "查看试题",
                        auth: ["管理员", "出题者", "浏览者"]
                    }
                ]
            }
        ]
    },
    {
        path: "/login",
        component: Login
    }
]